# -*- coding: utf-8 -*-

from core.viewset import CustomModelViewSet
from .models import TestReport
from .serializers import *
from .filters import *


class TestReportViewSet(CustomModelViewSet):
    """
    测试报告-视图
    list:查询
    create:新增
    update:修改
    retrieve:单例
    destroy:删除
    """

    queryset = TestReport.objects.all()
    serializer_class = TestReportSerializer
    list_serializer_class = ListTestReportSerializer
    filterset_class = TestReportFilterSet
